package com.ruoyi.zyt.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考生信息对象 user
 * 
 * @author zyt
 * @date 2023-11-18
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private Long id;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String pic;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String name;

    /** 用户密码 */
    private String password;

    /** 主课（物理-历史） */
    @Excel(name = "主课", readConverterExp = "物=理-历史")
    private String mainSub;

    /** 副科（生物-化学-政治） */
    @Excel(name = "副科", readConverterExp = "生=物-化学-政治")
    private String sencSub;

    /** 考生分数 */
    @Excel(name = "考生分数")
    private Long num;

    /** 位次 */
    @Excel(name = "位次")
    private Integer place;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setMainSub(String mainSub) 
    {
        this.mainSub = mainSub;
    }

    public String getMainSub() 
    {
        return mainSub;
    }
    public void setSencSub(String sencSub) 
    {
        this.sencSub = sencSub;
    }

    public String getSencSub() 
    {
        return sencSub;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setPlace(Integer place) 
    {
        this.place = place;
    }

    public Integer getPlace() 
    {
        return place;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pic", getPic())
            .append("name", getName())
            .append("password", getPassword())
            .append("mainSub", getMainSub())
            .append("sencSub", getSencSub())
            .append("num", getNum())
            .append("place", getPlace())
            .toString();
    }
}
